package com.example.mapper.user_lease;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.domain.user_lease;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface leaseQuery extends BaseMapper<user_lease> {

    @Update("UPDATE user_lease SET order_number='0',yuqitime='${format}',yuqifeiyong=${yuqifeiyong} WHERE user_lease.user_openid=${openid} and user_lease.articlesid=${articlesid}")
    public boolean updatenumber(String openid,int articlesid,String format,int yuqifeiyong);

//    @Select("select * from user_lease where ")
//    List<user_lease> finalldingdan(String openid);
}
